<template>
	<view>
		<u-cell-group>
			<u-cell-item  title="头像" :arrow="false">
				<image class="face" :src="'http://localhost:3000'+Info.face" slot="right-icon"></image>
			</u-cell-item>
			<u-cell-item  title="账号" :arrow="false">
				<text slot="right-icon">{{Info.username}}</text>
			</u-cell-item>
			<u-cell-item  title="昵称" :arrow="false">
				<text slot="right-icon">{{Info.nickname}}</text>
			</u-cell-item>
			<u-cell-item  title="部门" :arrow="false">
				<text slot="right-icon">{{Info.deptName}}</text>
			</u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				Info:{}
			}
		},
		created(){
			let userInfo = uni.getStorageSync('userInfo')
			console.log(userInfo)
			this.Info = userInfo
			
		},
	}
</script>

<style lang="scss" scoped>
	.face{
		width: 64rpx;
		height: 64rpx;
		border-radius: 50%;
	}
</style>